package com.wtp.wallpaper.controller.user;

import com.wtp.wallpaper.pojo.dto.ScoreDTO;
import com.wtp.wallpaper.pojo.result.Result;
import com.wtp.wallpaper.service.ScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ScoreController {

    @Autowired
    private ScoreService scoreService;

    @GetMapping("/setupScore")
    public Result setupScore(ScoreDTO scoreDTO){
        scoreService.setupScoreInUser(scoreDTO);
        return Result.success();
    }
}
